package io.bsly.modules.app.service.localmaster.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.bsly.common.utils.PageUtils;
import io.bsly.common.utils.Query;
import io.bsly.modules.app.dao.localDao.DyCompanyDao;
import io.bsly.modules.app.entity.localEntity.DyCompanyEntity;
import io.bsly.modules.app.service.localmaster.DyCompanyService;
import org.springframework.stereotype.Service;

import java.util.Map;


@Service("dyCompanyService")
public class DyCompanyServiceImpl extends ServiceImpl<DyCompanyDao, DyCompanyEntity> implements DyCompanyService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<DyCompanyEntity> page = this.page(
                new Query<DyCompanyEntity>().getPage(params),
                new QueryWrapper<DyCompanyEntity>()
        );

        return new PageUtils(page);
    }

}